home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / net3d-0.08 / fish.def.v < prev    next >
Text File  |  1995-06-22  |  4KB  |  185 lines

  1. #define O 1            /* mouth munching rate */
  2.  
  3. vehicle fish def {
  4. name "a giant flying fish"
  5. angle 90
  6. flying
  7. type fish
  8. hp 15
  9.  
  10. object { /* top hemifish */
  11.     at 100 100 60
  12.     centre 0 -5 0
  13.     counter
  14.     points {
  15.     /* first, the circumference in the x-z plane  0-17 */
  16.     -10 0 0  -10 0 2  -8 0 6  -6 0 8  -2 0 10  
  17.         2 0 10  6 0 8  8 0 6  10 0 2  
  18.     10 0 0  10 0 -2  8 0 -6  6 0 -8  2 0 -10  
  19.         -2 0 -10  -6 0 -8  -8 0 -6  -10 0 -2
  20.         /* now, the mouth 18-25 */  
  21.         -8 6 2  -4 10 4  4 10 4  8 6 2 
  22.         8 6 2  4 10 4  -4 10 4  -8 6 2
  23.     /* the rear circumference: a tad smaller  26-33 */
  24.     -8 -6 0  -8 -6 2  -6 -6 6  -2 -6 8  2 -6 8  6 -6 6  8 -6 2  8 -6 0
  25.         /* the tailfin: first, mounting points and then the fin itself 
  26.            clockwise from left (front view)
  27.          34-37 */
  28.     -2 -10 0  0 -10 4  2 -10 0  0 -10 -4
  29.         }
  30.     oscli 18 O { - - -2 }
  31.     oscli 19 O { - - -4 }
  32.     oscli 20 O { - - -4 }
  33.     oscli 21 O { - - -2 }
  34.  
  35.     /* front polygons */
  36.     face 243 f { 0 1 18 }
  37.     face 244 f { 1 2 18 }
  38.     face 245 f { 2 3 19 18 }
  39.     face 246 f { 3 4 19 }
  40.     face 245 f { 4 5 20 19 }
  41.     face 244 f { 5 6 20 }
  42.     face 243 f { 6 7 21 20 }
  43.     face 242 f { 7 8 21 }
  44.     face 239 f { 8 9 21 }
  45.         /* mouth */
  46.     face 200 f { 0 18 19 20 21 9 }
  47.         /* between main and rear circumferences / order is reverse */
  48.     face 239 f { 26 27 1 0 }
  49.         face 241 f { 27 28 2 1 }
  50.         face 242 f { 28 3 2 }
  51.         face 242 f { 28 29 4 3 }
  52.         face 241 f { 29 30 5 4 }
  53.         face 240 f { 30 31 6 5 }
  54.         face 239 f { 31 7 6 }
  55.         face 238 f { 31 32 8 7 }
  56.         face 237 f { 32 33 9 8 }
  57.     /* rear circumference to tailfin mount */
  58.     face 235 f { 26 34 27 }
  59.     face 237 f { 27 34 28 }
  60.     face 238 f { 34 35 28 }
  61.     face 239 f { 28 35 29 }
  62.     face 241 f { 29 35 30 }
  63.     face 240 f { 30 35 31 }
  64.     face 238 f { 31 35 36 }
  65.     face 236 f { 32 31 36 }
  66.     face 234 f { 32 36 33 }
  67. }
  68.  
  69. object { /* bottom hemifish */
  70.     at 100 100 60
  71.     centre 0 -5 0
  72.     counter
  73.     points {
  74.     /* first, the circumference in the x-z plane  0-17 */
  75.     -10 0 0  -10 0 2  -8 0 6  -6 0 8  -2 0 10  
  76.         2 0 10  6 0 8  8 0 6  10 0 2  
  77.     10 0 0  10 0 -2  8 0 -6  6 0 -8  2 0 -10  
  78.         -2 0 -10  -6 0 -8  -8 0 -6  -10 0 -2
  79.         /* now, the mouth 18-25 */  
  80.         -8 6 -2  -4 10 -4  4 10 -4  8 6 -2 
  81.         8 6 -2  4 10 -4  -4 10 -4  -8 6 -2
  82.     /* the rear circumference: a tad smaller  26-33 */
  83.     8 -6 0  8 -6 -2  6 -6 -6  2 -6 -8  -2 -6 -8  -6 -6 -6  -8 -6 -2  -8 -6 0
  84.         /* the tailfin: first, mounting points and then the fin itself 
  85.            clockwise from left (front view)
  86.        34-37
  87.          */
  88.     -2 -10 0  0 -10 4  2 -10 0  0 -10 -4
  89.         }
  90.     oscli 22 O { - - 2 }
  91.     oscli 23 O { - - 4 }
  92.     oscli 24 O { - - 4 }
  93.     oscli 25 O { - - 2 }
  94.  
  95.     /* front polygons */
  96.     face 237 f { 9 10 22 }
  97.     face 236 f { 10 11 22 }
  98.     face 234 f { 11 12 23 22 }
  99.     face 232 f { 12 13 23 }
  100.     face 231 f { 13 14 24 23 }
  101.     face 232 f { 14 15 24 }
  102.     face 234 f { 15 16 25 24 }
  103.     face 236 f { 16 17 25 }
  104.     face 237 f { 17 0 25 }
  105.         /* mouth */
  106.         face 207 f { 0 9 22 23 24 25 }
  107.         /* between main and rear circumferences */
  108.         face 237 f { 9 26 27 10 }
  109.     face 235 f { 10 27 28 11 }
  110.     face 233 f { 11 28 12 }
  111.     face 232 f { 12 28 29 13 }
  112.     face 234 f { 13 29 30 14 }
  113.     face 235 f { 14 30 31 15 }
  114.     face 236 f { 15 31 16 }
  115.     face 238 f { 16 31 32 17 }
  116.     face 239 f { 17 32 33 0 }
  117.     /* rear circumference to tailfin mount */
  118.     face 234 f { 26 36 27 }
  119.     face 232 f { 27 36 28 }
  120.     face 231 f { 28 36 37 }
  121.     face 230 f { 28 37 29 }
  122.     face 229 f { 29 37 30 }
  123.     face 230 f { 30 37 31 }
  124.     face 232 f { 37 34 31 }
  125.     face 234 f { 34 32 31 }
  126.     face 235 f { 34 33 32 }
  127. }
  128.  
  129. object { /* left fin */
  130.     at 100 100 60
  131.     centre -10.5 -4.5 0
  132.     counter
  133.     points {
  134.     -10 0 0  -16 -6 0  -8 -6 2  -8 -6 -2
  135.         }
  136.  
  137.     face 214 f { 0 1 2 }
  138.     face 211 f { 3 1 0 }
  139.     face 212 f { 3 2 0 }
  140. }
  141. object { /* right fin */
  142.     at 100 100 60
  143.     centre 10.5 -4.5 0
  144.     counter
  145.     points {
  146.     10 0 0  16 -6 0  8 -6 2  8 -6 -2
  147.         }
  148.  
  149.     face 213 f { 2 1 0 }
  150.     face 209 f { 0 1 3 }
  151.     face 212 f { 0 2 3 }
  152. }
  153. object { /* top fin */
  154.     at 100 100 60
  155.     centre 0 -4.5 10.5
  156.     counter
  157.     points {
  158.     0 0 10  0 -6 16  -2 -6 8  2 -6 8 
  159.     }
  160.  
  161.     face 215 f { 0 2 1 }
  162.     face 211 f { 0 1 3 }
  163.     face 212 f { 2 3 1 }
  164. }
  165.  
  166. object { /* tailfin */
  167.     at 100 100 60
  168.     centre 0 -12 0
  169.     counter
  170.     points {
  171.     -2 -10 0  0 -10 4  2 -10 0  0 -10 -4
  172.         -4 -14 0  0 -14 8  4 -14 0  0 -14 -8
  173.     }
  174.     face 248 f { 4 5 1 0 }
  175.     face 246 f { 5 6 2 1 }
  176.     face 243 f { 6 7 3 2 }
  177.     face 245 f { 7 4 0 3 }
  178.     face 246 f { 7 6 5 4 }
  179. }
  180.  
  181. }
  182.  
  183.  
  184.  
  185.